package com.example.demo01.Entity.webEntity;

import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class SelectTreeItemEntity {
    private String id;
    private String label;
    private String geom;
    private List<SelectTreeItemEntity> children;
    //setter
    public void setId(String id) {
        this.id = id;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public void setGeom(String geom) {
        this.geom = geom;
    }

    public void setChildren(List<SelectTreeItemEntity> children) {
        this.children = children;
    }

    //getter
    public String getId() {
        return id;
    }

    public String getLabel() {
        return label;
    }

    public String getGeom() {
        return geom;
    }

    public List<SelectTreeItemEntity> getChildren() {
        return children;
    }

    //constructors
    public SelectTreeItemEntity() {
    }

    public SelectTreeItemEntity(String id, String label) {
        this.id = id;
        this.label = label;
    }

    public SelectTreeItemEntity(String id, String label, String geom) {
        this.id = id;
        this.label = label;
        this.geom = geom;
    }

    public SelectTreeItemEntity(String id, String label,List<SelectTreeItemEntity> children) {
        this.id = id;
        this.label = label;
        this.children = children;
    }

    public SelectTreeItemEntity(String id, String label, String geom, List<SelectTreeItemEntity> children) {
        this.id = id;
        this.label = label;
        this.geom = geom;
        this.children = children;
    }
}
